package cn.swust.designpatternlearningplatform.service.impl;

import cn.swust.designpatternlearningplatform.dao.DailyExerciseDao;
import cn.swust.designpatternlearningplatform.domain.bo.DailyExerciseBo;
import cn.swust.designpatternlearningplatform.domain.dto.DailyExerciseDto;
import cn.swust.designpatternlearningplatform.service.DailyExerciseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DailyExerciseServiceImpl implements DailyExerciseService {

    @Autowired
    private DailyExerciseDao dailyExerciseDao;

    /**
     * 查询做题记录
     *
     * @param dailyExerciseBo
     * @return cn.swust.designpatternlearningplatform.domain.dto.DailyExerciseDto
     * @author Tang
     * @date 2023/4/21 16:58
     **/
    @Override
    public DailyExerciseDto getRecentRecord(DailyExerciseBo dailyExerciseBo) {
        return dailyExerciseDao.selectByStudentNumber(dailyExerciseBo);
    }
}
